using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Caching;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using Oplaco.Core.DAL;
using Oplaco.Core.BusinessLogicLayer;



namespace Oplaco.Web.DTO
{
    /// <summary>
    /// Summary description for CachedLocation
    /// </summary>
    public class CachedLocation : ICacheableDataTransferObject<CachedLocation>
    {
        
        
        public CachedLocation(int id, string name)
        {
            this.Id = id;
            this.Title = name;
        }

        public int Id
        {
            get;
            set;
        }

        public int Rank
        {
            get;
            set;
        }

        public int MemberId
        {
            get;
            set;
        }

        public string Title
        {
            get;
            set;
        }

        public string Url
        {
            get;
            set;
        }

        public bool HasChilds
        {
            get;
            set;
        }

        public DateTime PublishDate
        {
            get;
            set;
        }

        public ICollection<CachedLocation> ChildCollection
        {
            get;
            set;
        }
    }

    
}